package Journal;

import Journal.JournalList;

public class JournalHandler {
	JournalList list;
	Journal Journal;
	
	public JournalHandler(){
		list = new JournalList();
	}

	
	public void createJournal(String doc1, String nurse1, String text, int patientID){
		list.addJournal(new Journal(doc1, nurse1, text, "Bamse", patientID));
	}
	
	public void listJournal(int patientID){
		System.out.println(list.getJournal(patientID).getContent());
	}
	public boolean removeJournal(int patientID){
		return list.removeJournal(patientID);
	}
	public boolean editJournal(String doc1, String nurse1, String text, int patientID){
		return list.editJournal(doc1,nurse1,text,patientID);
	}
	public String getJournal(int patientID){
		Journal j = list.getJournal(patientID);
		return j.getDoctor() + j.getNurse() + j.getPatient() + j.getPatientID() + j.getContent();
	}
	
}

